package com.itheima.jinjie.lianxi;

public class Ceshi {
    public static void main(String[] args) {
        Student u1=new Undergraduate("王五",24,"研究生","网络工程");
        Student g1=new Graduate("张三",21,"本科","土木工程");
        System.out.println(u1.getName()+","+u1.getAge()+","+u1.getGegree()+","+((Undergraduate) u1).getSpecialty());
        System.out.println(g1.getName()+","+g1.getAge()+","+g1.getGegree()+","+((Graduate) g1).getDirection());
        u1.show();
        g1.show();
    }
}
